package com.ikas.autumn.iec104.module.protocol.enums;

import com.ikas.autumn.iec104.common.enums.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 机理建模类型枚举
 *
 * @author lv.yi
 */
@Getter
@AllArgsConstructor
public enum DataCategoryEnum implements BaseEnum<DataCategoryEnum, Integer> {

    /**
     * {@inheritDoc}
     */
    TELE(2, "遥测"),
    SIGN(3, "遥信"),
    ;

    private final Integer code;
    private final String name;


    @Override
    public Integer getValue() {
        return code;
    }

    @Override
    public String getDisplayName() {
        return getName();
    }
}
